package com.cctc.security.services.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cctc.security.dao.GroupDao;
import com.cctc.security.domain.Group;
import com.cctc.security.services.GroupService;

@Service("groupService")
public class GroupServiceImpl<T extends Group> implements GroupService<T>{
	@Autowired
	private GroupDao<T> groupDao;
	
	@Override
	public void addGroup(T t) {
		this.groupDao.addGroup(t);
	}

	@Override
	public void delGroup(T t) {
		this.groupDao.delGroup(t);
	}

	@Override
	public void updateGroup(T t) {
		this.groupDao.updateGroup(t);
	}

    @Override
	public T findGroupById(String id) {
		return (T) this.groupDao.findGroupById(id);
	}

}
